<template>
  <div class="user-info">
    <img src="@/assets/img/avator.webp" alt="图片未加载成功" class="user-avator" />
    <div class="desc">
      <p class="username"><slot name="username"></slot></p>
      <p class="account"><slot name="account"></slot></p>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.user-info {
  display: flex;
}
.user-avator {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}
.desc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 10px;
  font-size: 25px;
}
</style>
